import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/setting/tag',
    method: 'get',
    params: query
  })
}


export function createTag(data) {
  return request({
    url: '/tag/createTag',
    method: 'get',
    params:data
  })
}

export function updateTag(data) {
  return request({
    url: '/tag/update',
    method: 'get',
    params: data
  })
}

export function deleteTag(data) {
  return request({
    url: '/tag/quit',
    method: 'get',
    params: data
  })
}

export function getPost() {
  return request({
    url: '/getPostType',
    method: 'get',
  })
}

